<?php
/* include the PHP Facebook Client Library to help
  with the API calls and make life easy */
require_once('facebook/php/facebook.php');

/* initialize the facebook API with your application API Key
  and Secret */
$facebook = new Facebook("d24843d256344ff3060737e83da2265b","d61ad469d864cebf371a41d3dbf867ef");

/* require the user to be logged into Facebook before
  using the application. If they are not logged in they
  will first be directed to a Facebook login page and then
  back to the application's page. require_login() returns
  the user's unique ID which we will store in fb_user */
$facebook->require_frame();
$fb_user = $facebook->require_login();

session_start();
$_SESSION['user']=$fb_user;
$_SESSION['fb_api']=$facebook;

//create mySQL connection
include('db_connect.php');
include('session.php');
require('Logo.php');
include('Tabs.php');
if($reach_veri==0){
    $page = basename($_SERVER['PHP_SELF']);
    if($page != 'Courses.php' && $page != 'InviteFriends.php' && $page != 'About.php' && $page != 'index.php' && $page != 'confirmation.php')
    {
        echo "<br> <h1>Sorry... it looks like you don't have permission to view this page yet. Please verify your permissions and your ULink account first. </h1>";
        exit;
    }
}
?>

